<template>
  <div class="my-card">
    <div class="card-title">{{ title }}</div>
    <div class="card-content">
      <slot name="content">
        <el-empty />
      </slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MyCard',
  props: {
    title: {
      required: true
    }
  }
}
</script>

<style scoped lang="scss">
.my-card {
  border-radius: 4px;
  border: 1px solid #e6ebf5;
  background-color: #FFFFFF;
  overflow: hidden;
  color: #303133;
  -webkit-transition: 0.3s;
  transition: 0.3s;

  .card-title {
    box-sizing: border-box;
    padding: 14px 15px 7px;
    min-height: 40px;
    border-bottom: 1px solid #e6ebf5;
  }

  .card-content {
    margin: 10px 0;
  }
}
</style>
